package cn.hd.dao;

import cn.hd.entity.Bill;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface BillDao {
    public List<Bill> selectAllBill(Map map);
    public int selectZCStatus(String uuid);
    public int addBill(Bill bill);
    public int deleteBill(int billid);
    public Bill selectBillByBid(int billid);

    //添加地址中间表
    public int addBillAddress(@Param("bid")long bid,@Param("aid")long aid);
    //添加用户中间表
    public int addBillUser(@Param("bid")long bid,@Param("uid")int uid);
    //完善订单
    public int wsbill(@Param("billname") String billname,@Param("bid") int bid);

    //查询所有订单
    public List<Bill> selectAllDD();

    //查询用户下面已经支付的订单
    public List<Bill> selectAllBillyzf(int uid);
    //修改已支付的订单的状态
    public int updateDDZT(String uuid);
    //修改未支付的订单的状态
    public int updateDDZTWZF(String uuid);
    //查询新生成的订单id
    public int selectDDId();
    //根据bid修改订单状态
    public int updateDDZTWZFByid(int bid);

    //根据uuid查询订单
    public Bill selectDDByuuid(String uuid);




}
